/**
  ******************************************************************************
  * File Name          : route_gwcfg.c
  * Description        : Code for freertos applications
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include <string.h>
#include "network.h"
#include "route.h"

static void route_gwcfg_getcsq(Route_PayloadType *rtpl)
{
  uint8_t err;
  
  err = Cat1_DynamicConfig();
  if((err == 3) || (err == 4))
  {
    MQTT_Context.connectStatus = MQTTNotConnected;
  }
}

uint8_t Route_gwcfg(Route_PayloadType *rtpl)
{
  switch(rtpl->pl_type)
  {
    case ROUTE_PLTYP_GWCFG_GETCSQ:
      route_gwcfg_getcsq(rtpl);
      break;
    
    default:
      return 1;
  }
  
  return 0;
}
